package com.yupi.oj.judge.languageManage;

import com.yupi.oj.judge.strategy.CJudge;
import com.yupi.oj.judge.strategy.JavaJudge;
import com.yupi.oj.judge.strategy.JudgeStrategy;
import com.yupi.oj.judge.strategy.PythonJudge;

public class LanguageManage {
    public static JudgeStrategy getLanguageJudge(String language){
        switch(language){
            case "java":
                return new JavaJudge();
            case "c":
                return new CJudge();
            case "python":
                return new PythonJudge();
            default:
                return null;
        }
    }
}
